package com.funcourse.demo.model.repo.room;

import com.funcourse.demo.model.room.RoomNumber;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface RoomNumberRepo extends MongoRepository<RoomNumber,String> {

  RoomNumber findByRoomId(String roomId);

  void deleteByRoomId(String roomId);

  List<RoomNumber> findByRoomNo(String roomNo);

}
